package com.woniuxy.repayment.mapper;

import com.woniuxy.commons.vo.SearchProjectVo;
import com.woniuxy.repayment.entity.Repayment;
import com.woniuxy.repayment.vo.RepaymentVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RepaymentMapper {
    boolean addRepayment(Repayment repayment);

    Repayment findRepaymentByPno(String pno);

    void repaymentSuccess(String pno);

    void repaymentFalse(String pno);

    List<RepaymentVo> searchRepayment(SearchProjectVo searchProjectVo);

    List<RepaymentVo> searchOverdues(SearchProjectVo searchProjectVo);
}
